<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>Advanced Music Search</title>
    </h:head>
    
    <h:body>
        <font size="2">
        <h:form>
            <p:tabMenu activeIndex="1">
                <p:menuitem value="Home" action="index?faces-redirect=true" />
                <p:menuitem value="Music" action="musicsearch?faces-redirect=true" />
                <p:menuitem value="Video" action="videosearch?faces-redirect=true" />
                <p:menuitem value="Help" action="help?faces-redirect=true" />
            </p:tabMenu> 
        </h:form>
            
        <h:form>  
            <p:panel header="Advanced music search">

                <h:panelGrid title="Advanced music search" columns="2" cellpadding="5" frame="border">  
                    <h:outputLabel for="title" value="Title:" style="font-weight:bold" />  
                    <p:inputText id="title" value="#{MusicSearch.title}" required="true"/>  

                    <h:outputLabel for="author" value="Author:" style="font-weight:bold"/>  
                    <p:inputText id="author" value="#{MusicSearch.author}" />  

                    <h:outputLabel for="album" value="Album:" style="font-weight:bold"/>  
                    <p:inputText id="album" value="#{MusicSearch.album}" />  

                    <h:outputLabel for="year" value="Year:" style="font-weight:bold"/>  
                    <p:inputText id="year" value="#{MusicSearch.year}"  /> 

                    <h:outputText value="Genre: " style="font-weight: bold"/>  
                    <p:selectOneMenu value="#{MusicSearch.genre}" effect="fade">
                        <f:selectItems value="#{MusicSearch.genres}"  />  
                    </p:selectOneMenu> 

                    <p:commandButton value="AllTer it!" actionListener="#{MusicSearch.doAction}"/>  
                </h:panelGrid>
                
            </p:panel>

        </h:form>  
        </font>
      </h:body>
</html>

